/**
* @Depends base.bizproc.js
*/
ksg.ui.bizprocs.alfrescoManagement = function(id, dataParams) {
	return new ksg.ui.BizProc(id, dataParams, {
		alfOptions: dataParams["alf-options"],
		options: {
			refreshListOnEditToggle: true,
			refreshListOnUpdate: true
		},
		bizRules: {
			getBizObjListBizRule: "getAlfArticles",
			updateBizRule: "updateAlfArticle",
			deleteBizRule: "deleteAlfArticle"
		},
		
		CurrentEditPrivilege: function() {
			return ksg.security.Privileges.Delete;
		},
		_getBizObjDetailRuleParameters: function(id) {
			return {
				id: id, stripLeading: !this.CanEdit()
			};
		},
		_getBizObjListRuleParameters: function() {
			var options = $.extend({			
				stripLeading: !this.CanEdit()
			}, this.alfOptions);
			var pid = this._getParentBizProcValue("pid");
			if(pid)
				options.id = pid;
			return options;
		}
	});
};